package com.rui.adapter.model;

import com.rui.adapter.obj.AC220;
import com.rui.adapter.obj.Object.DC5;

/**
 * @Description: 适配器类（电源适配器）
 * @Author: ZhangRui
 * @Date: 2023/3/2 16:24
 * @Version: 1.0
 */
public class ClassPowerAdapter extends AC220 implements DC5 {

    @Override
    public int output5() {
        int output220 = super.output();
        int output5 = output220 / 44;
        System.out.println(output220 + "V适配转换成" + output5 + "V");
        return output5;
    }

}